<?php

$text = '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>';
echo $text;
echo '<br/>';
echo strip_tags($text);
echo '<br>';

$str = "John &amp; &#039;Adams&#039;";
echo htmlspecialchars_decode($str);
echo '<br>';

$str = 'I love "PHP".';
echo htmlspecialchars($str); 
echo '<br>';
echo dirname("c:/testweb/home.php");
echo dirname("/testweb/home.php");
echo '<br>';
echo  str_repeat ( "-=" ,  10 );
echo '<br>';
echo '<br>';

$path_parts  =  pathinfo ( '/www/htdocs/inc/lib.inc.php' );

echo  $path_parts [ 'dirname' ],  "\n" ;
echo '<br>';
echo  $path_parts [ 'basename' ],  "\n" ;
echo '<br>';
echo  $path_parts [ 'extension' ],  "\n" ;
echo '<br>';
echo  $path_parts [ 'filename' ],  "\n" ; 
echo '<br>';
echo '<br>';
echo '<br>';
$input  =  "Alien" ;
echo '<br>';
echo  str_pad ( $input ,  10 ); 
echo '<br>';                      
echo  str_pad ( $input ,  10 ,  "-=" ,  STR_PAD_LEFT );  
echo '<br>';
echo  str_pad ( $input ,  10 ,  "_" ,  STR_PAD_BOTH ); 
echo '<br>';  
echo  str_pad ( $input ,  6  ,  "___" );  